<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<p id="time"></p>
		<script>
			function mytime(){
				var now=new Date();
				var hour=now.getHours();
				var minute=now.getMinutes();
				var seconds=now.getSeconds();
				hour=(hour<10?'0'+hour:hour);
				minute=(minute<10?'0'+minute:minute);
				seconds=(seconds<10?'0'+seconds:seconds);
				var time=document.getElementById('time');
				time.innerHTML=hour+":"+minute+":"+seconds;
			}
			window.setInterval(mytime,1000);
		</script>
	</body>
</html>
